<%@ page contentType="text/html;charset=UTF-8" language="java" isErrorPage="true" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>服务器错误 - 智能记账系统</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
  <style>
    body {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      height: 100vh;
      display: flex;
      align-items: center;
    }
    .error-container {
      background: white;
      border-radius: 10px;
      padding: 50px;
      text-align: center;
      box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    .error-code {
      font-size: 120px;
      font-weight: bold;
      color: #dc3545;
      line-height: 1;
    }
  </style>
</head>
<body>
<div class="container">
  <div class="row justify-content-center">
    <div class="col-md-6">
      <div class="error-container">
        <div class="error-code">500</div>
        <h2>服务器内部错误</h2>
        <p class="text-muted mb-4">抱歉，服务器遇到了意外错误，请稍后重试。</p>
        <div class="d-grid gap-2 d-md-block">
          <a href="../index.jsp" class="btn btn-primary me-md-2">
            <i class="fas fa-home me-1"></i>返回首页
          </a>
          <a href="javascript:history.back()" class="btn btn-outline-secondary">
            <i class="fas fa-arrow-left me-1"></i>返回上页
          </a>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>